package com.gp.entity;

import com.gp.utils.Entity;

import java.util.Date;
import java.util.List;


public class Question extends Entity {

    private Integer id;
    private String title;
    private String remark;
    private Integer type;
    private Integer required;
	private Date createTime;
	private Integer surveyId;
	private List<QuestionOpt> options;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getRequired() {
        return required;
    }

    public void setRequired(Integer required) {
        this.required = required;
    }

    public Integer getSurveyId() {
        return surveyId;
    }

    public void setSurveyId(Integer surveyId) {
        this.surveyId = surveyId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public List<QuestionOpt> getOptions() {
        return options;
    }

    public void setOptions(List<QuestionOpt> options) {
        this.options = options;
    }

    @Override
    public String toString() {
        return "Question{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", remark='" + remark + '\'' +
                ", type=" + type +
                ", required=" + required +
                ", createTime=" + createTime +
                ", surveyId=" + surveyId +
                ", options=" + options +
                '}';
    }
}